package book.service;

import book.pojo.Book;
import book.pojo.PageBean;

import java.util.List;

public interface IBookService {
    int addBook(Book book);
    List<Book> findAllBooks();
    PageBean<Book> findAllBooks(PageBean<Book> pageBean);
    //查询总记录数
    int getBookCount(PageBean<Book> pageBean);

    Book findBookById(int id);

    int updataBook(Book book);

    int deleteBook(Book book);
}
